/*
*  Copyright 2012 m4f10
*
*  This file is part of uScan.
*  uScan is free software: you can redistribute it and/or modify it under the
*  terms of the GNU General Public License as published by the 
*  Free Software Foundation, either version 3 of the License, or (at your option)
*  any later version.
*
*    uScan is distributed in the hope that it will be useful, 
*    but WITHOUT ANY WARRANTY; without even the implied warranty of 
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
* 
*    See the GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License 
*    along with uScan. If not, see http://www.gnu.org/licenses/.
*/
/*
 * 
 * This class shall be called from the beginning of the program
 * 
 */
package uscan;

/**
 *
 * @author Asus
 */
public class UScanSettings {
    private String defaultParamValueInjected;
    private String dynamicPageRegExp;
    private int    numThread;
    private String defaultUserAgent;
    private String cookie_value;
    
    public UScanSettings()
    {
        this.setDefaultInjectedParamValue("1337");
        this.setDynamicPageRegExp("");
        this.setNumThread(4);
        this.setDefaultUserAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11"
                +" (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11");
        this.setCookieValue("");
    }
    
    /*
     * Getters and setters
     */
    
    public String getCookieValue()
    {
        return this.cookie_value;
    }
    public void setCookieValue(String cookie)
    {
            this.cookie_value = cookie;
    }
    
    public String getDefaultUserAgent()
    {
        return this.defaultUserAgent;
    }
    public void setDefaultUserAgent(String ua)
    {
            this.defaultUserAgent = ua;
    }
    
    public String getDefaultInjectedParamValue()
    {
        return this.defaultParamValueInjected;
    }
    
    public int getNumThread()
    {
        return this.numThread;
    }
    
    public String getDynamicPageRegExp()
    {
        return this.dynamicPageRegExp;
    }
    
    public void setDefaultInjectedParamValue(String val)
    {
        this.defaultParamValueInjected = val;
    }
    
    public void setDynamicPageRegExp(String val)
    {
        this.dynamicPageRegExp = val;
    }
    
    public void setNumThread(int val)
    {
        this.numThread = val;
    }
    
    
    
}
